Copied copy path!

agentflow-betaURL copied

agentflow-beta TB
  connector llm["LLM API"]
  llm@{ protocol: "http", endpoint: "https://api.example.com/chat" }
  flow newsroom["Newsroom"]
    topic["topic"]@{ shape: input, value: "Open source" }
    flow researcher["Researcher"]
      search["search_web"]@{ shape: tool, params: "query :: String", returns: "Sources" }
      summarise["summarise"]@{ shape: tool, connectorRef: "llm.chat", returns: "Brief" }
      topic --> search --> summarise
    end
    researcher@{ instruction: "Collect sources and write a brief." }
    flow writer["Writer"]
      draft["draft_article"]@{ shape: tool, connectorRef: "llm.chat", returns: "Draft" }
      brand["House Style Guide"]@{ shape: refdoc }
      draft -.- brand
    end
    flow editor["Editor"]
      review["review_draft"]@{ shape: tool, connectorRef: "llm.chat", returns: "Review" }
      facts["Fact Database"]@{ shape: refdoc }
      review -.- facts
    end
    researcher --> writer
    writer --> editor
  end
```mermaid
---
width: 85vw
---
agentflow-beta TB
  connector llm["LLM API"]
  llm@{ protocol: "http", endpoint: "https://api.example.com/chat" }
  flow newsroom["Newsroom"]
    topic["topic"]@{ shape: input, value: "Open source" }
    flow researcher["Researcher"]
      search["search_web"]@{ shape: tool, params: "query :: String", returns: "Sources" }
      summarise["summarise"]@{ shape: tool, connectorRef: "llm.chat", returns: "Brief" }
      topic --> search --> summarise
    end
    researcher@{ instruction: "Collect sources and write a brief." }
    flow writer["Writer"]
      draft["draft_article"]@{ shape: tool, connectorRef: "llm.chat", returns: "Draft" }
      brand["House Style Guide"]@{ shape: refdoc }
      draft -.- brand
    end
    flow editor["Editor"]
      review["review_draft"]@{ shape: tool, connectorRef: "llm.chat", returns: "Review" }
      facts["Fact Database"]@{ shape: refdoc }
      review -.- facts
    end
    researcher --> writer
    writer --> editor
  end
```